﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using AIPASoft.Interfaces.Security;
using ConsoleDomain.View;
using ConsoleDomain.ViewModel;

namespace SpikerApp
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {

            var frmSec = new SecurityModule();
            frmSec.ShowDialog();

           

            // //AIPASoft.DataAccessor.SecDataAccessorDataContext sdc = new AIPASoft.DataAccessor.SecDataAccessorDataContext();

            // var s = new AIPASoft.DataProvider.SecurityDataProvider();
            // string result;
            // var permission = s.CreateNewPermission();
            // permission.PermissionName = "TestPermission";

            // var res = s.AddPermission(permission, out result);

            // var  role = s.CreateNewRole();

            // //Add New ROle
            // role.RoleName = "Admin";
            // res = s.AddRole(role, out result);


            // res = s.AddAuthorisation(role, permission, out result);

            // //Find Role
            // role = s.FindRole("Admin");


            // //Delete Role
            // res = s.DeleteRole(role, out result, true);

            // //AIPASoft.Interfaces.Security.IUser usr = s.CreateNewUser();

            // //var  role = s.CreateNewRole();
            // //role.RoleName = "Admin";

            // //string result;
            // //AIPASoft.Entities.DataProviderOperationResult res = s.AddRole(role, out result);



            // //usr.UserName = "Vinu";
            // //usr.RoleID = 2;
            // //usr.Tel = "8754445270";
            // //usr.Password="123";
            // //usr.IsWindowsUser = false;
            // //usr.IsDeleted = false;
            // //usr.FullName = "Vinu Baby";
            // //usr.Email = "vinubaby1@gmail.com";
            // //usr.Designation = "IT Manager";
            // //usr.Department = "IT";
            // //usr.CreatedOn = DateTime.Now;
            // //usr.CreatedBy = "Vinu";



            // //res = s.AddUser(usr, out result);

            //Console.WriteLine(res.ToString());

        }
    }
     
}
